<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>

<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<script>
	var ctx = "${ctx}";
</script>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>位置广告管理</title>
<meta name="keywords"
	content="体验,友好,高级管理台,易用,高性能,高扩展性,bootstrap框架,响应式后台">
<meta name="description"
	content="这是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">

<link rel="shortcut icon" href="favicon.ico">
<link href="${ctx}/static/css/bootstrap.min.css?v=${static_version}/"
	rel="stylesheet">
<link
	href="${ctx}/static/css/font-awesome.min.css?v=4.4.0?v=${static_version}/"
	rel="stylesheet">
<link
	href="${ctx}/static/css/plugins/footable/footable.core.css?v=${static_version}/"
	rel="stylesheet">
<link
	href="${ctx}/static/css/plugins/summernote/summernote.css?v=${static_version}/"
	rel="stylesheet">
<link
	href="${ctx}/static/css/plugins/summernote/summernote-bs3.css?v=${static_version}/"
	rel="stylesheet">
<link
	href="${ctx}/static/plugins/laypage/laypage.css?v=${static_version}"
	rel="stylesheet">
<link
	href="${ctx}/static/css/plugins/iCheck/custom.css?v=${static_version}/"
	rel="stylesheet">
<link
	href="${ctx}/static/css/plugins/chosen/chosen.css?v=${static_version}/"
	rel="stylesheet">
<link href="${ctx}/static/css/animate.min.css?v=${static_version}/"
	rel="stylesheet">
<link
	href="${ctx}/static/css/plugins/webuploader/webuploader.css?v=${static_version}/"
	rel="stylesheet">
<link href="${ctx}/static/css/style.min.css?v=${static_version}/"
	rel="stylesheet">
<link href="${ctx}/static/css/plugins/datapicker/datepicker3.css"
	rel="stylesheet">
<link
	href="${ctx}/static/css/plugins/switchery/switchery.css?v=${static_version}/"
	rel="stylesheet">
<link
	href="${ctx}/static/js/plugins/layer/laydate/laydate.css?v=${static_version}/"
	rel="stylesheet">
<link
	href="${ctx}/static/js/plugins/uploadify/uploadify.css?v=${static_version}/"
	rel="stylesheet" />
<link href="${ctx}/static/plugins/region/css/city-picker.css"
	rel="stylesheet" type="text/css" />
<link href="${ctx}/static/plugins/region/css/main.css" rel="stylesheet"
	type="text/css" />

<link href="${ctx}/static/css/animate.min.css" rel="stylesheet">
<link href="${ctx}/static/css/plugins/summernote/summernote.css"
	rel="stylesheet">
<link href="${ctx}/static/css/plugins/summernote/summernote-bs3.css"
	rel="stylesheet">

</head>
<body class="gray-bg">
	您的订单：
	<span id="orderid">${apiT_order.rid}</span>
	待支付；支付金额：${apiT_order.money}元
	<br>
	<div class="row">
		余额支付（用户余额：${apiT_member.c_money}） <br> 支付密码 <input
			type="password" name="paypwd" id="paypwd">
		<button type="button" onclick="usermoneypay()">确认支付</button>
	</div>
	<br>
	<div class="row">
		ping++支付 <br> <span>支付宝</span> <span>微信</span> <span>银联</span>
	</div>

	<script src="${ctx}/static/js/jquery.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/bootstrap.min.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/footable/footable.all.min.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/validate/jquery.validate.min.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/validate/messages_zh.min.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/webuploader/webuploader.min.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/summernote/summernote.min.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/summernote/summernote-zh-CN.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/chosen/chosen.jquery.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/iCheck/icheck.min.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/plugins/laypage/laypage.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/switchery/switchery.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/eModal.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/cookie.js?v=?v=${static_version}"></script>
	<script
		src="${ctx}/static/common/custom-datatable.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/content.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/common/common.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/layer/laydate/laydate.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/uploadify/jquery.uploadify.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/content.min.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/layer/layer.js?v=${static_version}"></script>
	<!-- 地区控件资源 -->
	<script type="text/javascript"
		src="${ctx}/static/plugins/region/js/city-picker.data.js"></script>
	<script type="text/javascript"
		src="${ctx}/static/plugins/region/js/city-picker.js"></script>
	<script type="text/javascript"
		src="${ctx}/static/plugins/region/js/main.js"></script>
	<script
		src="${ctx}/static/js/plugins/datapicker/bootstrap-datepicker.js"></script>
	<!-- 富文本编辑器资源 -->
	<script src="${ctx}/static/js/content.min.js?v=1.0.0"></script>
	<script src="${ctx}/static/js/plugins/summernote/summernote.min.js"></script>
	<script src="${ctx}/static/js/plugins/summernote/summernote-zh-CN.js"></script>

	<script src="${ctx}/static/js/pingpp.js"></script>
	<script type="text/javascript">
		function usermoneypay() {
			if ($("#paypwd").val() == '') {
				parent.layer.alert("密码不能为空！", {
					icon : 2,
					skin : 'layer-ext-moon'
				})
				return;
			}
			$
					.ajax({
						type : "post",
						url : "${ctx}/usermoneypay",
						data : "rid=" + $("#orderid").html() + "&paypwd="
								+ $("#paypwd").val(),
						success : function(msg) {
							var info = eval('(' + msg + ')');
							if (info.error == '0000') {
								parent.layer.alert('支付成功', {
									icon : 1,
									skin : 'layer-ext-moon'
								})
								window.location.href = "${ctx}/advert_positionadvert-list";
							} else {
								parent.layer.alert(info.information, {
									icon : 2,
									skin : 'layer-ext-moon'
								})
							}
						}
					})
		}
	</script>
</html>